#ifndef TILE_H
#define TILE_H

#include <string>
#include "constants.h"
#include "SDL/SDL.h"

class Tile
{
    private:
        static SDL_Rect clips[TILE_SPRITES];
        SDL_Rect box;
        int type;
        Uint32 color;

    public:
        static void clip_tiles();

        Tile(int x, int y, int tileType);
        ~Tile();

        void draw();
        void drawBox(Uint32 color);

        int get_type();
        SDL_Rect get_box();
};

enum Tiles
{
    TILE_GRASS,
    TILE_STONEFLOOR,
    TILE_BUSH
};

#endif // TILE_H
